package cn.rongcapital.operation.web;

import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 测试控制器
 *
 * @author yangzhongying
 * @version 1.0
 * @email yangzhongying@rongcapital.cn
 * @create 2017-08-14-00:05
 **/
@RestController
@RequestMapping("api")
public class IndexAction {


    @RequestMapping(value = "test", method = RequestMethod.GET)
    public String test() {
        Map map = new HashMap();
        map.put("status", 200);
        map.put("message", "部署成功");
        return JSON.toJSONString(map);
    }


}
